package eu.itool.mavenplugins;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * 
 * $License$
 * 
 * $Date: 2007-12-19 21:01:10 +0000 (Wed, 19 Dec 2007) $
 * $Revision: 17 $
 * $Author: sliwa.andrzej $
 * $HeadURL: http://glassfish-maven-plugin.googlecode.com/svn/trunk/glassfish-maven-plugin/src/main/java/eu/itool/mavenplugins/StopMojo.java $
 * $Id: StopMojo.java 17 2007-12-19 21:01:10Z sliwa.andrzej $
 * 
 * Stop the Glassfish via asadmin
 *
 * @goal stop
 * @description Maven 2 Glassfish plugin
 */
public class StopMojo extends AbstractGlassfishMojo{

	public void execute() throws MojoExecutionException, MojoFailureException {
		
		String params = "stop-domain " + domain;
		
		getLog().info("Glassfish home = " +glassfishHome);
		getLog().info("Params =" + params);
		
		launchWithoutMessage("asadmin", params);
	}

	
}
